package com.rds.workflow.mapper;

import com.rds.workflow.domain.RdaWorkflowTempleteScope;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RdaWorkflowTempleteScopeMapper {

    /**
     * 查询流程模板应用范围
     *
     * @param id 流程模板应用范围id
     * @return 流程模板应用范围
     */
    public RdaWorkflowTempleteScope selectRdaWorkflowTempleteScopeById(Long id);


    public List<RdaWorkflowTempleteScope> selectRdaWorkflowTempleteScopeList(RdaWorkflowTempleteScope rdaWorkflowTempleteScope);

    public List<RdaWorkflowTempleteScope> selectRdaWorkflowTempleteScopeObject(@Param("objectTypeid") Long objectTypeid, @Param("objectPolicyid") Long objectPolicyid);

    public int insertRdaWorkflowTempleteScope(RdaWorkflowTempleteScope rdaWorkflowTempleteScope);

    public int updateRdaWorkflowTempleteScope(RdaWorkflowTempleteScope rdaWorkflowTempleteScope);

    public int deleteRdaWorkflowTempleteScope(Long[] ids);
}
